package com.iqik.base.base;

import java.util.concurrent.locks.ReentrantLock;

public class DemoSub extends Demo {

    public static void change(int[] counts) {
        counts[0] = -1;
    }

    public static void change2(int i, int j) {

        int temp = i;
        i = j;
        j = temp;
        System.out.println(i + " -> " + j);
    }

    public int method(int a, int b) {
        return 0;
    }

    public Object method(int a) {
        return null;
    }

    public static void main(String[] args) {
        int[] counts = {0, 1, 2, 3, 4};
        change(counts);
        for (int count : counts) {
            System.out.println(count);
        }
       int a = 9, b = 10;
        change2(a, b);
        System.out.println(a + "   " + b);
    }
}
